package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/** 
 * @author liuxin
 * @create 2023-12-03 14:30:41 
 * @description 点播播放记录 
 */
@Data
@TableName(value ="yx_on_demand_play")
@ApiModel(value = "点播播放记录" , description="yx_on_demand_play")
public class YxOnDemandPlayEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "play_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="播放记录ID")
    private Long playId;

    @TableField(value="video_id")
    @ApiModelProperty(value="播放视频ID")
    private Long videoId;

    @TableField(value="play_user_id")
    @ApiModelProperty(value="播放人ID")
    private String playUserId;

    @TableField(value="play_user_name")
    @ApiModelProperty(value="播放人名称")
    private String playUserName;

    @TableField(value="play_url")
    @ApiModelProperty(value="播放地址")
    private String playUrl;

    @TableField(value="play_duration")
    @ApiModelProperty(value="播放时长")
    private BigDecimal playDuration;

    @TableField(value="play_start_time")
    @ApiModelProperty(value="开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date playStartTime;

    @TableField(value="play_end_time")
    @ApiModelProperty(value="结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date playEndTime;

    @TableField(value="bandwidth")
    @ApiModelProperty(value="带宽")
    private Integer bandwidth;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时建")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="complete_flag")
    @ApiModelProperty(value="完成播放 0：否 1：是")
    private Integer completeFlag;
}
